package com.uobgroup.ews.uam.core.service;

import com.uobgroup.ews.uam.core.domain.SecurityGroup;
import java.util.List;

public interface SecurityGroupService {

   long countAllSecurityGroups();

   void deleteSecurityGroup(SecurityGroup securityGroup);

   SecurityGroup findSecurityGroup(Long id);

   List<SecurityGroup> findAllSecurityGroups();

   List<SecurityGroup> findSecurityGroupEntries(int firstResult, int maxResults);

   void saveSecurityGroup(SecurityGroup securityGroup);

   SecurityGroup updateSecurityGroup(SecurityGroup securityGroup);
   
   boolean hasSecurityGroup(String rolename);

   List<SecurityGroup> findAllSecurityGroupsThatHasNoSegment();
}
